import tensorflow as tf
import os
os.environ['TF_CPP_MIN_LOG_LEVEL']='2'

# 实现一个加法运算
a = tf.constant(5.0)
b = tf.constant(6.0)
print(a, b)

sum1 = tf.add(a, b)

print(sum1)

with tf.Session() as sess:
    print(sess.run(sum1))